<?php
class  Model_Comment extends Ac_Model
{
	protected static  $_collection = 'comment';
	
	protected static $_transcript = array(
		'_id'       => 	'_id',
		'ls'		=> 	'list_id',
		'co'		=>	'content',
		'us'		=>	'user_id',
		'st'		=>	'status',
		'c_dt'		=>  'created_at',
	);
	
	public function __construct($data = array(), $config = array())
	{
        $config['collection'] = 'comment';
        parent::__construct($data, $config);
    }
    
    public static function addface($content)
    {
		$patterns = new Zend_Config_Ini(APPLICATION_PATH.'/configs/face.ini','sign');
		$patterns = $patterns->sign->toArray();
		$replacements = new Zend_Config_Ini(APPLICATION_PATH.'/configs/face.ini','face');
		$replacements = $replacements->face->toArray();
		$content = preg_replace($patterns, $replacements, $content);
		return $content;
    }
}